﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="RecommandCategory.aspx.cs"
    Inherits="Directory.Web.Admin_RecommandCategory" Theme="Admin_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>

    <script type="text/javascript">
        function NavUrl(url) {
            location.href = url;
        }
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <div class="container">
        <div class="pageheader">
            <b style="color: Red">推荐<%= Resources.Resource.Category %>管理</b>
        </div>
        <asp:Repeater ID="rptCateogries" runat="server">
            <HeaderTemplate>
                <table>
                    <tr>
                        <th>
                            <% = Resources.Resource.ResourceManager.GetString("Category") %>
                        </th>
                        <th>
                            管理操作
                        </th>
                    </tr>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <td>
                        <img src="/imgs/fldr.gif" />
                        <%# Eval("CategoryName") %>
                    </td>
                    <td>
                        <a href="RecommandCategory.aspx?categoryId=<%# Eval("CategoryId") %>&action=unrecommand">
                            取消推荐</a>
                    </td>
                </tr>
            </ItemTemplate>
            <FooterTemplate>
                </table></FooterTemplate>
        </asp:Repeater>
        <fieldset title="推荐<% = Resources.Resource.ResourceManager.GetString("Category") %>">
            <legend>推荐<% = Resources.Resource.ResourceManager.GetString("Category") %></legend>
            <div>
                <h4 class="FL">
                    选择<% = Resources.Resource.ResourceManager.GetString("Category") %>：</h4>
                <div class="FL">
                    <DirectoryControl:CascadingCategory ID="CascadingCategory" runat="server" />
                </div>
                <br />
                <br />
                <center>
                    <asp:Button ID="btnAdd" runat="server" Text="推 荐" OnClick="btnAdd_Click" />
                    &nbsp; &nbsp;
                    <%--<input type="button" class="input_Button" value="返 回" onclick="NavUrl('CategoryView.aspx?<%= categoryIdKey %>=<%= categoryId %>')" />--%>
                </center>
            </div>
        </fieldset>
    </div>
    </form>
</body>
</html>
